package com.zyg.user.client;

import com.zyg.common.utils.R;
import com.zyg.user.client.factory.ManagerClientFallbackFactory;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
//服务调用组件：openFeign底层使用动态代理实现

//@FeignClient(value = "zyg-manager",fallback = ManagerClientImpl.class)
//@FeignClient(value = "zyg-manager",fallbackFactory = ManagerClientFallbackFactory.class)
@FeignClient(value = "zyg-manager")
public interface ManagerClient {
    //查询所有的品牌
    @GetMapping("manager/brand/findAll")
    R findAll();
}
